<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>403</title>
</head>
<body>
    SORRY, YOU DON'T HAVE AUTHORITY
    <div id="map" style="height: 800px;width: 800px"></div>

    <script src="/js/JQuerym.js"></script>
    <script type="text/javascript" src="http://api.map.baidu.com/getscript?v=3.0&ak=NUvQmHyvEMWTO534b5GcCGUM4eGuGXwT"></script>
    <script type="text/javascript">
        $(function () {
            //画地图
            map = new BMap.Map("map");
            //创建中心点
            var point = new BMap.Point("118.767413","32.041544");
            //地图初始化
            map.centerAndZoom(point,15);
            //鼠标滚轮缩放
            map.enableScrollWheelZoom(true);
            //平移缩放控件
            map.addControl(new BMap.NavigationControl());
            //缩略地图
            map.addControl(new BMap.OverviewMapControl());
            //比列尺
            map.addControl(new BMap.ScaleControl());
            //地图类型
            map.addControl(new BMap.MapTypeControl());
            //控件的位置
            // var options = {anchor:BMAP_ANCHAOR_BOTTOM_RIGHT};
            // map.addControl(new BMap.NavigationControl(options));

            //为我的位置创建标注
            var marker = new BMap.Marker(point);
            //将标注放入地图
            map.addOverlay(marker);

            var options = {
                width:250,
                height:100,
                title: '我的位置'
            }
            var content = "<div><font color = 'pink'>我的家在这里</font></div>"
            var infoWindow = new BMap.InfoWindow(content,options);
            //监听标注，点击后显示信息窗口
            marker.addEventListener('click',function() {
                //在标记点打开窗口，如果是中央map.getCenter()
                map.openInfoWindow(infoWindow,point);
            });
        })
    </script>
</body>


</html>